package com.peter.design.pattern.flyweight.general;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/27 20:59
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        IFlyweight flyweight1 = FlyweightFactory.getFlyweight("aa");
        IFlyweight flyweight2 = FlyweightFactory.getFlyweight("bb");
        flyweight1.operation("a");
        flyweight2.operation("b");
    }
}
